#include <iostream>
#include <string>
using namespace std;
class Back{
	public:
		Back(){}
		Back(double balance){
			this->balance=balance;
			cout<<balance<<endl;
		}
		void show();
		void In(double money);
		void Out(double money);
	private:
		double balance;
		string name;
		string AccountNum;
};
void Back::show(){
	cout<<balance<<endl;
}
void Back::In(double money){
	this->balance+=money;
	show();
}
void Back::Out(double money){
	if(this->balance>=money){
		this->balance-=money;
		show();
	}else {
	cout<<"no enough balance!"<<endl;
	}
}
int main()
{
	double init;
	cin>>init;
	Back person1(init);
	cin>>init;
	person1.In(init);
	cin>>init;
	person1.Out(init);
}
